﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel;
using System.IO;
using System.ComponentModel;
using System.Xml;

namespace Argos.Activities.MessageDelivery
{
	[DisplayName("XML File Delivery Activity")]
	[Description("A message delivery activity that stores the message in an XML file. The address is the full path to the file to store the message in.")]
	public sealed class XmlFileDeliveryActivity : FileDeliveryActivity
	{

		protected override void WriteFile()
		{
			string path = this.GetFullFilePath(".xml");
			this.Message.WriteXml(new FileInfo(path));
		}

	}
}
